import {
	request
} from '@/network/request.js'

// 申请列表
export function getApplyList(data){
	return request({
		url: '/teamApply/findApply',
		data: data
	})
}

// 提交申请
export function apply(data){
	return request({
		url: '/teamApply/insert',
		data: data
	})
}

// 团队列表
export function getTeamList(data) {
	return request({
		url: '/team/findAllTeam',
		data: data
	})
}
//创建团队
export function createTeam(data){
	return request({
		url: '/team/insert',
		data: data
	})
}

export function editTeam(data){
	return request({
		url: '/team/update',
		data: data
	})
}

export function delTeam(data){
	return request({
		url: '/team/delete',
		data: data
	})
}

export function getTeamInfo(data){
	return request({
		url: '/team/findById',
		data: data
	})
}


export function getMember(data){
	return request({
		url: '/teamMember/findAllMember',
		data: data
	})
}


export function addMember(data){
	return request({
		url: '/teamMember/insert',
		data: data
	})
}

export function delMember(data){
	return request({
		url: '/teamMember/delete',
		data: data
	})
}

export function delTeamApply(data){
	return request({
		url:'/teamApply/deleteById',
		data:data
	})
}

export function applyEdit(data){
	return request({
		url:'/teamApply/update',
		data:data
	})
}

export function applyDel(data){
	return request({
		url:'/teamApply/delete',
		data:data
	})
}
// 得到姓名
export function findPersonById(data){
	return request({
		url: '/basicUser/findById',
		data: data
	})
}

export function findTeamJoin(data){
	return request({
		url: '/teamMember/findMyJoinTeam',
		data: data
	})
}